home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15644 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: Sun, 07 Apr 96 18:58:31 GMT
  6. Organization: none
  7. Message-ID: <828903511snz@genesis.demon.co.uk>
  8. References: <dewar.828846122@schonberg>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <dewar.828846122@schonberg> dewar@cs.nyu.edu "Robert Dewar" writes:
  15.  
  16. >"Well, POSIX is IEEE standard 1003. I don't think SPEC1170 and XPG are
  17. >national/international standards but are something you have to conform to
  18. >if you want to call your OS UNIX(tm).
  19. >"
  20. >
  21. >This is plain wrong! There are lots of unixes out there that call themselves
  22. >UNIX and do not conform exactly to SPEC1170.
  23.  
  24. No, they call themselves Unix. They *cannot* call themselves UNIX(tm).
  25.  
  26. >Consider for example, also answering your question about ANSI being
  27. >a misleadng guide to portability, the return type of sprintf. I don't
  28. >have SPEC1170 on hand, but it is a good guess that it is ANSI compliant
  29. >here (return type int), but BSD heritage unices (like SunOS) return
  30. >char *.
  31.  
  32. In any ANSI compiler/library sprintf returns int. Tell me of any modern
  33. system which doesn't make the correct functionality available in a library,
  34. if not the default. These days this is a non-issue with regards to
  35. portability (even considering Sun systems).
  36.  
  37. >and prey who enforces this rule?
  38.  
  39. X/Open own the UNIX trademark and have the legal right to enforce it.
  40.  
  41. -- 
  42. -----------------------------------------
  43. Lawrence Kirby | fred@genesis.demon.co.uk
  44. Wilts, England | 70734.126@compuserve.com
  45. -----------------------------------------
  46.